/*
 * SuppliesCounterVisitor.cpp
 *
 *  Created on: 08-01-2011
 *      Author: Przemek
 */

#include "world/visitors/SuppliesCounterVisitor.hpp"

SuppliesCounterVisitor::SuppliesCounterVisitor() :
	meat(0), vegetable(0), water(0)
{

}

void SuppliesCounterVisitor::visit(Barrier&)
{

}

void SuppliesCounterVisitor::visit(Individual&)
{

}

void SuppliesCounterVisitor::visit(MeatSupply&)
{
	++meat;
}

void SuppliesCounterVisitor::visit(VegetableSupply&)
{
	++vegetable;
}

void SuppliesCounterVisitor::visit(WaterSupply&)
{
	++water;
}

int SuppliesCounterVisitor::getWaterCounter() const
{
	return water;
}

int SuppliesCounterVisitor::getMeatCounter() const
{
	return meat;
}

int SuppliesCounterVisitor::getVegetablesCounter() const
{
	return vegetable;
}
